package cn.pupil.design.impl;

/**
 * @Description: 扩展继承，实现自己的需求
 * @Author: pupil
 * @Date: 2024/06/22 下午 9:33
 */
public class ICalculateAreaImplExt extends ICalculateAreaImpl {

    private final static double π = 3.1415926D;

    /**
     * 计算圆形面积
     * @param r
     * @return
     */
    @Override
    public double circular(double r) {
        return π * r * r;
    }
}
